package chapter01;
import java.util.Scanner;
public class Test04_SplitNumbers {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //读取要拆分的数字
        System.out.println("请输入要拆分的数字：");
        int i = scanner.nextInt();//224
        int bai = i/100;
        int shi = i%100/10;
        int ge = i%10;
        if (i==bai*bai*bai+shi*shi*shi+ge*ge*ge) {
            System.out.println("是水仙花数");
        }else {
            System.out.println("不是水仙花数");
        }
    }
}
